home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Online / NNTPd / doc / config.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2002-11-01  |  1.8 KB  |  61 lines

  1. #!/bin/sh
  2. #
  3. # Shell script for making manual pages
  4. #
  5. # Created by Stan Barber; Mon Apr  6 13:25:27 CDT 1987
  6. # Modified by Phil Lapsley; Thu Oct 15 17:43:40 PDT 1987
  7. #
  8.  
  9. #
  10. # ------------- SITE DEPENDENT STUFF ---------------------------
  11. # (modify these lines to suit your system)
  12. #
  13. # the location of inetd on your system (usually /etc/inetd)
  14. MINETD=/etc/inetd
  15. # the location of the inetd configuration file (usually /etc/inetd.conf)
  16. MINETDCONFIG=/etc/inetd.conf
  17. # the location of nntpd following installation (usually /etc/nntpd)
  18. MNNTPD=/etc/nntpd
  19. # the location of the hosts file (usually /etc/hosts)
  20. MHOSTFILE=/etc/hosts
  21. # the location of the services file (usually /etc/services)
  22. MSERVICES=/etc/services
  23. # the location of the networks file (usually /etc/networks)
  24. MNETWORKFILE=/etc/networks
  25. # The location of the news spool directory (usually /usr/spool/news)
  26. MNEWSSPOOL=/usr/spool/news
  27. # The location of the news library directory (usually /usr/lib/news)
  28. MNEWSLIB=/usr/lib/news
  29. # The location of the file containing the name of the nntp server machine
  30. # (usually /usr/local/lib/rn/server)
  31. MSERVERFILE=/usr/local/lib/rn/server
  32. # The location of rn's local library (usually /usr/local/lib/rn)
  33. MRNLIB=/usr/local/lib/rn
  34. #
  35. # ------------ END OF SITE DEPENDENT STUFF ---------------------
  36. # (you should not have to touch anything below).
  37.  
  38. echo "Extracting $2 from $1 ..."
  39.  
  40. echo g%NEWSLIB%s%NEWSLIB%$MNEWSLIB%
  41. echo g%NEWSSPOOL%s%NEWSSPOOL%$MNEWSSPOOL%
  42. echo g%INETDCONFIG%s%INETDCONFIG%$MINETDCONFIG%
  43. echo g%LNNTPD%s%LNNTPD%$MNNTPD%
  44. echo g%INETD%s%INETD%$MINETD%
  45. echo g%HOSTFILE%s%HOSTFILE%$MHOSTFILE%
  46. echo g%SERVICES%s%SERVICES%$MSERVICES%
  47. echo g%NETWORKFILE%s%NETWORKFILE%$MNETWORKFILE%
  48. echo g%RNLIB%s%RNLIB%$MRNLIB%
  49. echo w
  50. echo q
  51. ) > /tmp/ed.$$
  52.  
  53. rm -f $2
  54. cp $1 $2
  55. chmod 644 $2
  56. (ed $2 < /tmp/ed.$$) 2>&1 > /dev/null
  57. rm /tmp/ed.$$
  58.  
  59. echo "Finished."
  60.